% latex table generated in R 4.4.0 by xtable 1.8-4 package
% Thu Apr 10 09:23:37 2025
\begin{table}[ht]
\centering
\scalebox{0.6}{
\begin{tabular}{rrrrrrrrrrrr}
  \hline
 & Cruz '16 & Trump '16 & Kasich '16 & Ackison '18 & Gibbons '18 & Renacci '18 & Haley '24 & Trump '24 & Dolan '24 & Larose '24 & Moreno '24 \\ 
  \hline
Gingrich '12 & 0.021 & 0.199 & -0.194 & 0.028 & 0.017 & -0.027 & -0.185 & 0.191 & -0.113 & -0.038 & 0.141 \\ 
  Santorum '12 & \cellcolor{gray!80}0.382 & 0.177 & \cellcolor{gray!30}-0.331 & 0.188 & 0.174 & \cellcolor{gray!30}-0.248 & \cellcolor{gray!30}-0.328 & \cellcolor{gray!80}0.328 & \cellcolor{gray!30}-0.301 & 0.188 & 0.150 \\ 
  Romney '12 & \cellcolor{gray!30}-0.337 & \cellcolor{gray!30}-0.252 & 0.400 & \cellcolor{gray!30}-0.294 & -0.182 & \cellcolor{gray!80}0.347 & \cellcolor{gray!80}0.386 & \cellcolor{gray!30}-0.368 & \cellcolor{gray!80}0.350 & -0.192 & -0.195 \\ 
  Cruz '16 & 1.000 & -0.005 & \cellcolor{gray!30}-0.393 & 0.127 & \cellcolor{gray!80}0.276 & \cellcolor{gray!30}-0.286 & \cellcolor{gray!30}-0.330 & \cellcolor{gray!80}0.323 & \cellcolor{gray!30}-0.243 & 0.123 & 0.144 \\ 
  Trump '16 & -0.005 & 1.000 & \cellcolor{gray!60}-0.867 & 0.031 & -0.044 & -0.005 & \cellcolor{gray!60}-0.545 & \cellcolor{gray!110}0.595 & \cellcolor{gray!60}-0.407 & 0.068 & \cellcolor{gray!80}0.349 \\ 
  Kasich '16 & \cellcolor{gray!30}-0.393 & \cellcolor{gray!60}-0.867 & 1.000 & -0.111 & -0.053 & 0.141 & \cellcolor{gray!110}0.636 & \cellcolor{gray!60}-0.659 & \cellcolor{gray!110}0.476 & -0.149 & \cellcolor{gray!30}-0.353 \\ 
  Ackison '18 & 0.127 & 0.031 & -0.111 & 1.000 & -0.014 & \cellcolor{gray!60}-0.568 & -0.100 & 0.086 & -0.125 & 0.148 & 0.008 \\ 
  Gibbons '18 & \cellcolor{gray!80}0.276 & -0.044 & -0.053 & -0.014 & 1.000 & \cellcolor{gray!60}-0.701 & -0.088 & 0.092 & -0.052 & 0.019 & 0.037 \\ 
  Renacci '18 & \cellcolor{gray!30}-0.286 & -0.005 & 0.141 & \cellcolor{gray!60}-0.568 & \cellcolor{gray!60}-0.701 & 1.000 & 0.140 & -0.131 & 0.134 & -0.148 & -0.016 \\ 
  Haley '24 & \cellcolor{gray!30}-0.330 & \cellcolor{gray!60}-0.545 & \cellcolor{gray!110}0.636 & -0.100 & -0.088 & 0.140 & 1.000 & \cellcolor{gray!60}-0.900 & \cellcolor{gray!110}0.574 & -0.097 & \cellcolor{gray!60}-0.491 \\ 
  Trump '24 & \cellcolor{gray!80}0.323 & \cellcolor{gray!110}0.595 & \cellcolor{gray!60}-0.659 & 0.086 & 0.092 & -0.131 & \cellcolor{gray!60}-0.900 & 1.000 & \cellcolor{gray!60}-0.589 & 0.066 & \cellcolor{gray!110}0.531 \\ 
  Dolan '24 & \cellcolor{gray!30}-0.243 & \cellcolor{gray!60}-0.407 & \cellcolor{gray!110}0.476 & -0.125 & -0.052 & 0.134 & \cellcolor{gray!110}0.574 & \cellcolor{gray!60}-0.589 & 1.000 & \cellcolor{gray!30}-0.387 & \cellcolor{gray!60}-0.683 \\ 
  Larose '24 & 0.123 & 0.068 & -0.149 & 0.148 & 0.019 & -0.148 & -0.097 & 0.066 & \cellcolor{gray!30}-0.387 & 1.000 & \cellcolor{gray!60}-0.409 \\ 
  Moreno '24 & 0.144 & \cellcolor{gray!80}0.349 & \cellcolor{gray!30}-0.353 & 0.008 & 0.037 & -0.016 & \cellcolor{gray!60}-0.491 & \cellcolor{gray!110}0.531 & \cellcolor{gray!60}-0.683 & \cellcolor{gray!60}-0.409 & 1.000 \\ 
   \hline
\end{tabular}
}
\caption{Correlations of vote shares in Republican primaries from Ohio precincts (n=8512-9485).} 
\label{t:oh-gop-matrix}
\end{table}
